clc
clear
load('1_B.mat')
cnt = 1;
cnt2 = 1;
cnt3 = 0;
cnt4 = 0;
i = 1;
while i < 18630
    while strcmp(cell2mat(CrewRosters1B(i,1)),cell2mat(CrewRosters1B(i+cnt,1)))
        cnt = cnt + 1;
    end
    if cnt > 1
        table(cnt2:cnt2+cnt-1,:) = CrewRosters1B(i:i+cnt-1,:);
        cnt2 = cnt2 + cnt;
        cnt3 = cnt3 + 1;
    end
    i = i + cnt;
    cnt = 1;
    cnt4 = cnt4 + 1;
end

